﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Text;
using Microsoft.SqlServer.Server;


public class SqlPlus
{
    [SqlFunction(FillRowMethodName = "FillRow")]
    public static IEnumerable Split(String ids, string s)
    {
        return ids.Split(new string[]{s},StringSplitOptions.RemoveEmptyEntries);
    }
    public static void FillRow(Object obj, out string result)
    {
        result = obj.ToString();
    }
}

